package com.cf.super_hero.serve.impl;

import com.cf.super_hero.entity.Form;
import com.cf.super_hero.mapper.EnrollMapper;
import com.cf.super_hero.serve.EnrollInterfaceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EnrollService  implements EnrollInterfaceService {
    //    这里再强调下，只是由于idea自身的问题,他并没有到spring-boot中的IOC容器中的bean对象,并不是代码的问题
    //另外，再强调下，这个问题是出现在Service层
    @SuppressWarnings("all")
    @Autowired
    EnrollMapper enrollMapper;
    public Boolean enroll(Form form) {
        enrollMapper.enroll(form);
        return  true;
    }
}
